#include<iostream>
#include<algorithm>
using namespace std;
const int N = 1e3 + 10;
int n;
int arr[N];
int main()
{
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> arr[i];
	}
	sort(arr, arr + n);
	int j = 0;
	for (int i = 0; i < n; i++) {
		if (!i || arr[i] != arr[i - 1]) {
			arr[j++] = arr[i];
		}
	}
	//int j = 1;
	/*for (int i = 1; i < n; i++) {
		if (arr[i] != arr[i - 1]) {
			arr[j++] = arr[i];
		}
	}*/
	for (int i = 0; i < j ; i++) {
		cout << arr[i] << " ";
	}
	return 0;
}